package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("pp_chat_group_message")
public class PpChatGroupMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    //文件类型
    private Integer contentType;

    //表情包ID
    private String bqId;

    //文件大小
    private Integer size;

    @Field("i")
    private String pcgid;

    // 发送者类型, imei
    private String sender;

    // 接收者标识, imei
    private String acceptor;

    @Field("c")
    private String content;

    @Field("t")
    private Double time;

    private Date expiryAt;

}
